import React, {Component} from 'react';
import {
  Form,
  Input,
  Select,
  Button,
  Checkbox,
  Radio,
  Modal,
  Icon,
  message,
  Card,
} from 'antd';
import myaxios, {get, put, post} from 'common/fetch';
import {CATEGORY_URL} from 'constant/url';

const RadioGroup = Radio.Group,
  FormItem = Form.Item;

class carfication extends Component {
    const {categoryId, categoryList,vehicleIdList,authorNameList} = this.state;
    console.log('render',vehicleIdList);
    console.log('render',authorNameList)
    const {postDetail} = this.props;
    render()
    {
      const {categoryId, categoryList,vehicleIdList,authorNameList} = this.state;
      console.log('render',ParentbrandIdList);
      console.log('render',authorNameList)
      const {postDetail} = this.props;
      const categoryListRadios = categoryList.map((ele, index) => {
      return (
        <Radio style={{width: '100px'}} value={ele.id.toString()} key={index}>
          {ele.name}
        </Radio>
        );
       });
      return (
      <div>
        <h5 className="panel-custom-title">编辑车型</h5>
        <Card title="父级品牌" style={{margin: 20,marginBottom:0}} bordered={false}>
          <div className="msg-assign-wrapper">
            <div>
              <div className="mt10">
                <FormItem>
                  {/* <Input ref="vehicleID" autoFocus placeholder="请输入车辆ID" /> */}
                  <Select
                    mode="tags"
                    placeholder="父级品牌"
                    onChange={this.onAuthorNameChange}
                    style={{ width: '100%' }}
                    value={ParentbrandIdList}
                  >
                    {
                      ParentbrandIdList.map((item,index)=>{
                          console.log(item);
                        return <Select.Option key={item}>{item}</Select.Option>
                      })
                    }
                  </Select>
                </FormItem>
              </div>
            </div>
          </div>
        </Card>
        </div>
        )

    }
  }